package router

import (
	"github.com/gin-gonic/gin"
	"rk11_6-tech/handler"
)

func Init() *gin.Engine {
	// 1.创建路由
	r := gin.Default()
	r.POST("/login", handler.Login)
	r.GET("/list", handler.Lists)
	return r
}
